package com.jk.dmuserproveder.controller;

import com.jk.dmuserproveder.entity.UserEntity;
import com.jk.dmuserproveder.service.UserService;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 赵优秀
 * @version 1.0.0
 * @ClassName UserController.java
 * @Description TODO
 * @createTime 2021年08月30日 19:05:00
 */
@RestController
@RequestMapping("test")
public class UserController {
@Autowired
    private UserService userService;
    @PostMapping(value = "findUser")
    public List<UserEntity> findUser(@RequestBody UserEntity userEntity){
    return userService.findUser(userEntity);
}
}
